<template>
	<view class="sign-in">
		<!-- <u-navbar title="每日签到"  :autoBack="true" bgColor="rgba(0,0,0,0)"
			leftIconColor="#ffffff" titleStyle="color:#ffffff;"> -->
			<!-- #ifdef APP-PLUS||H5 -->
			<!-- <view class="u-nav-slot" slot="right">
				<u-icon name="@appstatic/my/my_icon_question_white.png" size='24px' color="#ffffff" @click='toPageInstructions'></u-icon>
			</view> -->
			<!-- #endif -->
		<!-- </u-navbar> -->
		<titlebara mode="" :backToIndex="false" :back="true" text="签到规则" :backgroundColor='backgroundColor' color='#ffffff' fontSize="36">
		</titlebara>

		<view class="top-box">
			<image class="top-bg" src="@appstatic/my/signrule-bg.png" mode="widthFix" />
		</view>

		<view>
			<view class="rule-content">1、每日签到得1积分；</view>
			<view class="rule-content">2、连续签到30日以上，每次签到得5积分；</view>
			<view class="rule-content">3、若断签后，则回到第一天重新记录；</view>
			<view class="rule-content">4、用户领取的积分，自领取之日起，365天有效期，逾期积分将自动失效。</view>
		</view>

	</view>
</template>

<script>
	const app = getApp();
	const network = require("@manager/network-manager.js")
	import calendar from '@components/r-calendar/r-calendar.vue'
	const dialog = require("../../../utils/dialog.js")
	import titlebara from '@/components/titlebar/titlebar'
	export default {
		components: {
			calendar,
			titlebara

		},
		data() {
			return {
				value: true,
				windowHeight: 0,
				navigationBarHeight: app.globalData.statusBarHeight + 44 + 'px',
				selected: [],
				checkinDay: 0
			};
		},
		onLoad: function(options) {},
		onShow() {
			
		},
		methods: {
			
		}
	}
</script>

<style lang='scss' scoped>
	.sign-in {
		width: 100vw;
		min-height: 100vh;
		box-sizing: border-box;
		background: #EDEDED url(@appstatic/img/my/bg-img.jpg) no-repeat;
		background-position: 0 0;
		background-size: 100%;
		background-attachment: fixed;

		image {
			image-rendering: -moz-crisp-edges;
			image-rendering: -o-crisp-edges;
			image-rendering: -webkit-optimize-contrast;
			image-rendering: crisp-edges;
			-ms-interpolation-mode: nearest-neighbor;
		}

		.top-box {
			width: 750rpx;
			max-height: 750rpx;
			overflow: hidden;
			position: relative;

			.top-bg {
				display: block;
				width: 100%;
			}

			.btn-img {
				width: 178rpx;
				z-index: 99;
				position: absolute;
				top: 470rpx;
				left: 60rpx;
			}

			.text-box {
				z-index: 99;
				position: absolute;
				top: 200rpx;
				left: 60rpx;
				color: #fff;
				display: flex;
				align-items: baseline;

				.num {
					font-weight: 700;
					font-size: 40rpx;
					line-height: 46rpx;
				}

				.text {
					font-size: 28rpx;
					line-height: 40rpx;
				}
			}

			.text-box-small {
				z-index: 99;
				position: absolute;
				top: 250rpx;
				left: 60rpx;
				color: #fff;
				display: flex;
				align-items: baseline;

				.num {
					font-weight: 700;
					font-size: 24rpx;
					line-height: 40rpx;
				}

				.text {
					font-weight: 500;
					font-size: 24rpx;
					line-height: 40rpx;
				}
			}
		}
		
		.rule-content {
			font-weight: 500;
			font-size: 36rpx;
			line-height: 56rpx;
			padding:20rpx 20rpx 0rpx 20rpx;
			
		}

		.calendar-box {
			margin-top: 10rpx;

			/deep/.uni-calendar__content {
				background-color: rgba(0, 0, 0, 0);
			}

			/deep/.uni-calendar__backtoday {
				display: none;
			}

			/deep/.uni-calendar__header {
				border: none;
			}

			/deep/.uni-calendar__header-btn {
				border: none;
				background: #3D3A3A;
				transform: matrix(0, -1, -1, 0, 0, 0);
			}
		}
	}
</style>
